/*
 * @Description:
 * @Author: fhw
 * @Date: 2023-01-15 14:51:13
 */
import { defineComponent, PropType } from 'vue'
import { UserOutlined } from '@ant-design/icons-vue'
import { isTrue } from '@/utils/tools'
const props = {
	headimgurl: String as PropType<string>,
	imgSize: {
		type: Number as PropType<number>,
		default: 40,
	},
	iconSize: {
		type: Number as PropType<number>,
		default: 70,
	},
	key: String as PropType<string>,
} as const
const userImage = defineComponent({
	props,
	setup(props) {
		return () =><a-avatar shape="square" size={props.iconSize} icon={<UserOutlined />}  src={props?.headimgurl} />
	},
})
export default userImage
